/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.dao;


import cn.yzc.dto.SysUserDto;
import cn.yzc.vo.SysRoleVo;
import cn.yzc.vo.SysUserVo;

import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yui.comn.mybatisx.annotation.Link;
import yui.comn.mybatisx.annotation.OneToOne;
import yui.comn.mybatisx.core.conditions.query.FindWrapper;
import yui.comn.mybatisx.core.mapper.BaseDao;

import java.util.List;

/**
 * <p>Project: mybatis-linkDemo - SysUserDao</p>
 * <p>Powered by yzc On 2024-05-14 14:34:03</p>
 * <p>描述：<p>
 *
 * @author yzc [youzhicheng0415@163.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface SysUserDao extends BaseDao<SysUserVo, SysUserDto> {


    @Link(ones ={
            @OneToOne(leftColumn = "role_id",rightClass = SysRoleVo.class)
    })
    List<SysUserDto> listUserARole(@Param(Constants.WRAPPER) FindWrapper<SysUserVo> wrapper);
}
